<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  // screen  => window.screen

  // availWidth,availHeight   返回显示屏幕的宽/高度(不包含任务栏)
  // width / height           返回显示屏幕的宽/高度(包含任务栏)

  console.log(screen);
  console.log(screen.availWidth, screen.availHeight);
  console.log(screen.width, screen.height);


</script>

</html>